package com.pkx.cloud.fse7.dms.realtimestate.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pkx.cloud.fse7.dms.realtimestate.entity.RealTimeState;
import com.pkx.cloud.mybatis.comn.BaseSev;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 服务类
 *
 * @author ly
 * @since 2020-10-14
 */
public interface RealTimeStateService extends BaseSev<RealTimeState> {

    /**
     * 分页列表
     *
     * @param realTimeState
     * @return
     */
    Page<RealTimeState> pageList(Page page, RealTimeState realTimeState);

    /**
     * 列表查询
     *
     * @param realTimeState
     * @return
     */
    List<RealTimeState> listByEntity(RealTimeState realTimeState);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    RealTimeState selectById(Long id);

    /**
     * 分页
     *
     * @param page
     * @param areaId
     * @return
     */
    Page<List<Map<String, Object>>> queryPage(Page page, String areaId);

    /**
     * 非分页列表
     *
     * @param areaId
     * @return
     */
    List<Map<String, Object>> queryList(String areaId);

    List<Map<String, Object>> readList(String areaId);

    Page<List<Map<String, Object>>> deviceList(Page page, Set<String> ridList);

    Map statistical(String areaId);

    Page<List<Map<String, Object>>> offline(Page page, String areaId);

    Page<List<Map<String, Object>>> grantPage(Page page, Integer devNo, Integer doorNo);
   List<Map<String, Object>> grantList( Integer devNo, Integer doorNo);
}
